package com.example.ymm.modules1.mapper.ms;

import com.example.ymm.base.CoreMapper;
import com.example.ymm.modules1.entity.ms.TProviderPartner;
import com.example.ymm.modules1.service.dto.ms.MsOrderDto;
import com.example.ymm.modules1.service.dto.ms.MsOrderListQueryCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TProviderPartnerMapper extends CoreMapper<TProviderPartner> {

    /**
     * 采购单列表
     * @param criteria
     * @return
     */
    List<MsOrderDto> purchaseOrderList(MsOrderListQueryCriteria criteria);

    /**
     * 外协加工单列表
     * @param criteria
     * @return
     */
    List<MsOrderDto> outsourceOrderList(MsOrderListQueryCriteria criteria);

    /**
     * 采购单累计下单量统计
     * @param criteria
     * @return
     */
    Double purchaseOrderSum(MsOrderListQueryCriteria criteria);

    /**
     * outsourceOrderSum
     * @param criteria
     * @return
     */
    Double outsourceOrderSum(MsOrderListQueryCriteria criteria);

}